
<div class="layui-form-item">
  <label class="layui-form-label">英文标题<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="entitle" id="info_entitle" class="layui-input modelform_entitle" value="{$r?$r['entitle']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">标题<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="title" id="info_title" class="layui-input modelform_title" value="{$r?$r['title']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">缩略图<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="thumb" id="info_thumb" value="{$r?$r['thumb']:''}" autocomplete="off" class="layui-input"/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="previewImg('info_thumb')"><i class="layui-icon">&#xe64a;</i>预览</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_thumb" data-listtype="img" id="info_thumb_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_thumb','','img')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">时间<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" autocomplete="off" name="newstime" id="info_newstime" value="<?=$r?date("Y-m-d H:i:s",$r['newstime']):date("Y-m-d H:i:s")?>" style=""  data-format="yyyy-MM-dd HH:mm:ss" class="layui-input form-date">
  </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">标题下描述<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="description1" id="info_description1" class="layui-input modelform_description1" value="{$r?$r['description1']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">跳转链接<span></span></label>
  <div class="layui-input-inline">
	<input type="text"  placeholder="" name="tourl" id="info_tourl" class="layui-input modelform_tourl" value="{$r?$r['tourl']:''}" style="" autocomplete="off">
  </div>
</div>	
<div class="layui-form-item">
	<label class="layui-form-label">图标<span></span></label>
    <div class="layui-input-inline morevalue">
		<script>
			var data_form_js='<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="data_0[]"></td><td class="morevalue_image"><input value="" id="randImgId" name="data_1[]"><a class="layui-btn layui-btn-sm" onClick="selectfile(\'randImgId\',\'\',\'img\',\'\',\'\')"><i class="layui-icon">&#xe681;</i></a><a class="layui-btn layui-btn-sm" onClick="morevaluePreImg(\'randImgId\')"><i class="layui-icon">&#xe615;</i></a></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="data_2[]"></td><td class="morevalue_image"><input value="" id="randImgId" name="data_3[]"><a class="layui-btn layui-btn-sm" onClick="selectfile(\'randImgId\',\'\',\'img\',\'\',\'\')"><i class="layui-icon">&#xe681;</i></a><a class="layui-btn layui-btn-sm" onClick="morevaluePreImg(\'randImgId\')"><i class="layui-icon">&#xe615;</i></a></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="data_4[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,data_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>';
		</script>
		<table class="layui-table" style="border-right:1px solid #ccc">
			<thead><tr><th style="width:20%">图标标题<input type="hidden" name="data_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">图标<input type="hidden" name="data_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">描述<input type="hidden" name="data_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">背景图片<input type="hidden" name="data_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">跳转链接<input type="hidden" name="data_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:10%">操作</th></tr></thead>
			<tbody>
				<?php
				if($r['data']){
					$morevalue=$r['data'];
					$morevalue_arr=explode("{{RsSplit}}",$morevalue);
					foreach($morevalue_arr as $k=> $v){
						if(!$v){break;}
						$vs=explode("{{FieldSplit}}",$v);
				?>				
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="data_0[]"></td><td class="morevalue_image"><input value="<?=$r?$vs['1']:''?>" id="data_1_<?=$k?>" name="data_1[]"><a class="layui-btn layui-btn-sm"  onClick="selectfile('data_1_<?=$k?>','','img','','')"><i class="layui-icon">&#xe681;</i></a><a class="layui-btn layui-btn-sm"  onClick="morevaluePreImg('data_1_<?=$k?>')"><i class="layui-icon">&#xe615;</i></a></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['2']:''?>" name="data_2[]"></td><td class="morevalue_image"><input value="<?=$r?$vs['3']:''?>" id="data_3_<?=$k?>" name="data_3[]"><a class="layui-btn layui-btn-sm"  onClick="selectfile('data_3_<?=$k?>','','img','','')"><i class="layui-icon">&#xe681;</i></a><a class="layui-btn layui-btn-sm"  onClick="morevaluePreImg('data_3_<?=$k?>')"><i class="layui-icon">&#xe615;</i></a></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['4']:''?>" name="data_4[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,data_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
					}                     
				}else{
				?>
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="data_0[]"></td><td class="morevalue_image"><input value="<?=$r?$vs['1']:''?>" id="data_1_<?=$k?>" name="data_1[]"><a class="layui-btn layui-btn-sm"  onClick="selectfile('data_1_<?=$k?>','','img','','')"><i class="layui-icon">&#xe681;</i></a><a class="layui-btn layui-btn-sm"  onClick="morevaluePreImg('data_1_<?=$k?>')"><i class="layui-icon">&#xe615;</i></a></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['2']:''?>" name="data_2[]"></td><td class="morevalue_image"><input value="<?=$r?$vs['3']:''?>" id="data_3_<?=$k?>" name="data_3[]"><a class="layui-btn layui-btn-sm"  onClick="selectfile('data_3_<?=$k?>','','img','','')"><i class="layui-icon">&#xe681;</i></a><a class="layui-btn layui-btn-sm"  onClick="morevaluePreImg('data_3_<?=$k?>')"><i class="layui-icon">&#xe615;</i></a></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['4']:''?>" name="data_4[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,data_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
				}
				?>									
			</tbody>
		</table>
    </div>
</div>
<div class="layui-form-item">
	<label class="layui-form-label">小标题<span></span></label>
    <div class="layui-input-inline morevalue">
		<script>
			var data1_form_js='<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="data1_0[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="data1_1[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="data1_2[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="data1_3[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="" name="data1_4[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,data1_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>';
		</script>
		<table class="layui-table" style="border-right:1px solid #ccc">
			<thead><tr><th style="width:20%">右侧小标题<input type="hidden" name="data1_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">左侧英文标题<input type="hidden" name="data1_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">左侧大标题<input type="hidden" name="data1_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">描述<input type="hidden" name="data1_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:20%">跳转链接<input type="hidden" name="data1_morevalue_len[]" placeholder="我只是用于在保存信息的时候用来判断一共有几个morevalue字段的"></th><th style="width:10%">操作</th></tr></thead>
			<tbody>
				<?php
				if($r['data1']){
					$morevalue=$r['data1'];
					$morevalue_arr=explode("{{RsSplit}}",$morevalue);
					foreach($morevalue_arr as $k=> $v){
						if(!$v){break;}
						$vs=explode("{{FieldSplit}}",$v);
				?>				
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="data1_0[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['1']:''?>" name="data1_1[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['2']:''?>" name="data1_2[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['3']:''?>" name="data1_3[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['4']:''?>" name="data1_4[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,data1_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
					}                     
				}else{
				?>
				<tr><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['0']:''?>" name="data1_0[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['1']:''?>" name="data1_1[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['2']:''?>" name="data1_2[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['3']:''?>" name="data1_3[]"></td><td class="morevalue_input"><input class="layui-input" placeholder="" value="<?=$r?$vs['4']:''?>" name="data1_4[]"></td><td class="morevalue_button"><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_add(this,data1_form_js)"><i class="layui-icon">&#xe654;</i></a><a class="layui-btn layui-btn-primary layui-btn-sm" onclick="morevalue_del(this)"><i class="layui-icon">&#xe640;</i></a></td></tr>
				<?php
				}
				?>									
			</tbody>
		</table>
    </div>
</div>
<div class="layui-form-item">
  <label class="layui-form-label">企业宣传视频<span></span></label>
  <div class="layui-input-inline file-upload">
		<input type="text" name="video" id="info_video" autocomplete="off" class="layui-input modelform_video" value="{$r?$r['video']:''}" style=""/>
		<div class="layui-btn-group">
			<button type="button" class="layui-btn" onclick="playVideo('info_video')"><i class="layui-icon">&#xe6ed;</i>播放</button>
			<button type="button" class="layui-btn fastupimg" data-input_id="info_video" data-listtype="video" id="info_video_Picker"><i class="layui-icon">&#xe608;</i>上传</button>
			<button type="button" class="layui-btn" onClick="selectfile('info_video','','video')"><i class="layui-icon">&#xe67c;</i>浏览</button>
		</div>
  </div>
</div>	
<div class="layui-form-item">
  <label class="layui-form-label">选择默认省份<span></span></label>
  <div class="layui-input-inline">
	  <div class="layui-col-md12">
		<input type="radio"  name="area" value="Xinjiang" title="Xinjiang" {:$r['area']=='Xinjiang'?"checked":""} /></label><input type="radio"  name="area" value="Heilongjiang" title="Heilongjiang" {:$r['area']=='Heilongjiang'?"checked":""} /></label><input type="radio"  name="area" value="Jilin" title="Jilin" {:$r['area']=='Jilin'?"checked":""} /></label><input type="radio"  name="area" value="Liaoning" title="Liaoning" {:$r['area']=='Liaoning'?"checked":""} /></label><input type="radio"  name="area" value="Beijing" title="Beijing" {:$r['area']=='Beijing'?"checked":""} /></label><input type="radio"  name="area" value="Tianjin" title="Tianjin" {:$r['area']=='Tianjin'?"checked":""} /></label><input type="radio"  name="area" value="Hebei" title="Hebei" {:$r['area']=='Hebei'?"checked":""} /></label><input type="radio"  name="area" value="Shanxi" title="Shanxi" {:$r['area']=='Shanxi'?"checked":""} /></label><input type="radio"  name="area" value="Shandong" title="Shandong" {:$r['area']=='Shandong'?"checked":""} /></label><input type="radio"  name="area" value="Jiangsu" title="Jiangsu" {:$r['area']=='Jiangsu'?"checked":""} /></label><input type="radio"  name="area" value="Shanghai" title="Shanghai" {:$r['area']=='Shanghai'?"checked":""} /></label><input type="radio"  name="area" value="Zhejiang" title="Zhejiang" {:$r['area']=='Zhejiang'?"checked":""} /></label><input type="radio"  name="area" value="Anhui" title="Anhui" {:$r['area']=='Anhui'?"checked":""} /></label><input type="radio"  name="area" value="Shaanxi" title="Shaanxi" {:$r['area']=='Shaanxi'?"checked":""} /></label><input type="radio"  name="area" value="Gansu" title="Gansu" {:$r['area']=='Gansu'?"checked":""} /></label><input type="radio"  name="area" value="Hubei" title="Hubei" {:$r['area']=='Hubei'?"checked":""} /></label><input type="radio"  name="area" value="Chongqing" title="Chongqing" {:$r['area']=='Chongqing'?"checked":""} /></label><input type="radio"  name="area" value="Hunan" title="Hunan" {:$r['area']=='Hunan'?"checked":""} /></label><input type="radio"  name="area" value="Jiangxi" title="Jiangxi" {:$r['area']=='Jiangxi'?"checked":""} /></label><input type="radio"  name="area" value="Fujian" title="Fujian" {:$r['area']=='Fujian'?"checked":""} /></label><input type="radio"  name="area" value="Guizhou" title="Guizhou" {:$r['area']=='Guizhou'?"checked":""} /></label><input type="radio"  name="area" value="Yunnan" title="Yunnan" {:$r['area']=='Yunnan'?"checked":""} /></label><input type="radio"  name="area" value="Guangxi" title="Guangxi" {:$r['area']=='Guangxi'?"checked":""} /></label><input type="radio"  name="area" value="Sichuan" title="Sichuan" {:$r['area']=='Sichuan'?"checked":""} /></label><input type="radio"  name="area" value="Taiwan" title="Taiwan" {:$r['area']=='Taiwan'?"checked":""} /></label><input type="radio"  name="area" value="Guangdong" title="Guangdong" {:$r['area']=='Guangdong'?"checked":""} /></label><input type="radio"  name="area" value="Henan" title="Henan" {:$r['area']=='Henan'?"checked":""} /></label><input type="radio"  name="area" value="Neimenggu" title="Neimenggu" {:$r['area']=='Neimenggu'?"checked":""} /></label><input type="radio"  name="area" value="ningxia" title="ningxia" {:$r['area']=='ningxia'?"checked":""} /></label><input type="radio"  name="area" value="Qinghai" title="Qinghai" {:$r['area']=='Qinghai'?"checked":""} /></label><input type="radio"  name="area" value="Xizang" title="Xizang" {:$r['area']=='Xizang'?"checked":""} /></label><input type="radio"  name="area" value="Hainan" title="Hainan" {:$r['area']=='Hainan'?"checked":""} /></label><input type="radio"  name="area" value="Xianggang" title="Xianggang" {:$r['area']=='Xianggang'?"checked":""} /></label><input type="radio"  name="area" value="Aomen" title="Aomen" {:$r['area']=='Aomen'?"checked":""} /></label><input type="radio"  name="area" value="Other" title="Other" {:$r['area']=='Other'?"checked":""} /></label>
	  </div>
  </div>
</div>